﻿using Application.DTO;
using Application.DTO.Department;
using AutoMapper.Configuration.Conventions;
using Domain.Entity.Department;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application.IService.Department
{
    public interface IDepartmentService:IBaseService<Departments>
    {
        /// <summary>
        /// 添加部门
        /// </summary>
        /// <param name="dto">部门信息</param>
        /// <returns></returns>
        public Task<ResultDTO<int>> InsertDepartment(DepartmentFormDTO dto);
        /// <summary>
        /// 修改部门
        /// </summary>
        /// <param name="dto">修改部门</param>
        /// <returns></returns>
        public Task<ResultDTO<int>> UpdateDepartment(DepartmentFormDTO dto);
        /// <summary>
        /// 逻辑删除部门
        /// </summary>
        /// <param name="id">主键ID</param>
        /// <returns></returns>
        public Task<ResultDTO<int>> SortDeleteDepartment(string ids);
        /// <summary>
        /// 查询部门列表
        /// </summary>
        /// <param name="name">部门名称</param>
        /// <returns></returns>
        public Task<ResultDTO<List<DepartmentShowDTO>>> SearchDepartment(string name, int pid);
    }
}
